package cn.com.jinhao.provider.business.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import tk.mybatis.mapper.annotation.KeySql;
import tk.mybatis.mapper.code.ORDER;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import java.util.Date;

@Table(name = "bt$wkfl")
@Data
@ToString
@ApiModel(value = "wkfl",description = "任务流程信息")
public class Wkfl {

    /**
     * id
     */
    @Column(name = "id")
    @ApiModelProperty(value = "id")
    @Id
    @KeySql(sql = "select SYS_GUID() from dual", order = ORDER.BEFORE)
    private String id;

    /**
     * code
     */
    @Column(name = "code")
    @ApiModelProperty(value = "code")
    private String code;

    /**
     * 事件编号
     */
    @Column(name = "bt$evif_code")
    @ApiModelProperty(value = "事件编号")
    private String btEvifCode;
    /**
     * 派单编号
     */
    @Column(name = "bt$evas_code")
    @ApiModelProperty(value = "派单编号")
    private String btEvasCode;

    /**
     * 节点编号
     */
    @Column(name = "evcu_code")
    @ApiModelProperty(value = "节点编号")
    private String evcuCode;

    /**
     * 父节点编号
     */
    @Column(name = "evcu_paid")
    @ApiModelProperty(value = "父节点编号")
    private String evcuPaid;

    /**
     * 执行时间
     */
    @Column(name = "evcu_time")
    @ApiModelProperty(value = "执行时间")
    private Date evcuTime;

    /**
     * 任务快照
     */
    @Column(name = "wkfl")
    @ApiModelProperty(value = "任务快照")
    private String wkfl;

    /**
     * 发起部门编码
     */
    @Column(name = "st$dept_code_a")
    @ApiModelProperty(value = "发起部门编码")
    private String stDeptCodea;

    /**
     * 发起部门
     */
    @Column(name = "st$dept_dept_a")
    @ApiModelProperty(value = "发起部门")
    private String stDeptDepta;

    /**
     * 发起人编码
     */
    @Column(name = "st$oper_code_a")
    @ApiModelProperty(value = "发起人编号")
    private String stOperCodea;

    /**
     * 发起人
     */
    @Column(name = "st$oper_oper_a")
    @ApiModelProperty(value = "发起人")
    private String stOperOpera;

    /**
     * 发起部门编码
     */
    @Column(name = "st$dept_code_b")
    @ApiModelProperty(value = "接收部门编码")
    private String stDeptCodeb;

    /**
     * 发起部门
     */
    @Column(name = "st$dept_dept_b")
    @ApiModelProperty(value = "接收部门")
    private String stDeptDeptb;

    /**
     * 发起人编码
     */
    @Column(name = "st$oper_code_b")
    @ApiModelProperty(value = "接收人编号")
    private String stOperCodeb;

    /**
     * 发起人
     */
    @Column(name = "st$oper_oper_b")
    @ApiModelProperty(value = "接收人")
    private String stOperOperb;
}
